package com.rjpacket.supernews.app;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;


public class SendAdviceActivity extends BaseActivity {

    private EditText edit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_send_advice);

        edit = (EditText) findViewById(R.id.send_edit);
        View btn = findViewById(R.id.btn_send);
        btn.setOnClickListener(this);

        TextView actionBar = (TextView) findViewById(R.id.actionbar_title);
        actionBar.setText("意见反馈");
    }

    @Override
    public void onClick(View v) {
        edit.setText("");
        Toast.makeText(this, "你的意见我们已经收到，谢谢您的反馈", Toast.LENGTH_SHORT).show();
    }
}
